import { WebView } from '@tarojs/components';
import { useRouter } from '@tarojs/taro';

export default function Page() {
  const router = useRouter();
  const url = router?.params?.url && decodeURIComponent(router.params.url);

  if (!url) return <>请携带URL参数</>;
  return <WebView src={url} />;
}
